<?php
/**
 * CreateUser: zlh
 * CreateTime: 2022/2/5 16:58
 * Remark:
 */

namespace App\Http\Requests\Client;

use App\Http\Requests\BaseRequests;

class AddClientPost extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'client_name' => "required",
            'client_credit_code' =>"required",
            'client_counterparty_type' =>"required",
            'client_industry_type' =>"required",
            'client_economic_type' =>"required",
            'client_scope_services' =>"required",
            'client_register_time' =>"required",
            'client_register_money' =>"required",
            'client_company_status' =>"required",
            'client_manage_location' =>"required",
            'client_finance_duty_paragraph' => "required",
            'client_finance_bank' =>"required",
            'client_finance_bank_account' =>"required",
            'client_finance_invoice_first' =>"required",
            'client_background' =>"required",
            'client_risk_legal_dispute' =>"required",
            'client_risk_overdue' =>"required",
            'client_risk_business' => "required",
            'client_risk_rests' => "required",
            'client_risk_rank' => "required",
            'client_finance_phone' => "required",
            'client_finance_address' => "required",

        ];
    }

    public function messages()
    {
        return [
            'client_name.required' => "客户名称不能为空",
            'client_credit_code.required' => "统一社会信用代码不能为空",
            'client_counterparty_type.required' => "相对方关系不能为空",
            'client_industry_type.required' => "企业类型不能为空",
            'client_economic_type.required' => "企业经济类型不能为空",
            'client_scope_services.required' => "服务范围不能为空",
            'client_register_time.required' => "注册时间不能为空",
            'client_register_money.required' => "注册资金不能为空",
            'client_company_status.required' => "公司状态不能为空",
            'client_manage_location.required' => "客户经营地址不能为空",
            'client_territory_code.required' => "客户所在区域不能为空",
            'client_finance_duty_paragraph.required' => "税号不能为空",
            'client_finance_bank.required' => "开户银行不能为空",
            'client_finance_bank_account.required' => "银行账号",
            'client_finance_invoice_first.required' => "发票抬头不能为空",
            'client_background.required' => "背景调查不能为空",
            'client_risk_legal_dispute.required' => "重要法律纠纷不能为空",
            'client_risk_overdue.required' => "逾期账款不能为空",
            'client_risk_business.required' => "经营风险不能为空",
            'client_risk_rests.required' => "其他风险不能为空",
            'client_risk_rank.required' => "风险评级不能为空",
            'client_finance_phone.required' => "企业联系方式不能为空",
            'client_finance_address.required' => "企业地址不能为空",
        ];
    }


}